package com.px.project.module.ht.service;

import com.px.common.dto.BaseQueryDto;
import com.px.project.module.ht.dto.VideoRecorderUpdateDto;
import com.px.project.module.ht.entity.VideoRecorder;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 录像机 服务类
 *
 * @author 品讯科技
 * @since 2023-10-10
 */
public interface VideoRecorderService extends IService<VideoRecorder> {
    /**
     * 分页查询录像机
     *
     * @param pageDto 分页 DTO
     * @param videoRecorder 录像机
     * @return {@link Page}<{@link VideoRecorder}>
     */
    Page<VideoRecorder> page(BaseQueryDto<VideoRecorder> pageDto, VideoRecorder videoRecorder);

    /**
     * 保存
     *
     * @param videoRecorder 录像机
     * @return {@link Boolean }
     */
    Boolean saveOne(VideoRecorder videoRecorder);

    /**
     * 更新
     *
     * @param videoRecorder 录像机
     * @return {@link Boolean }
     */
    Boolean updateOfOne(VideoRecorderUpdateDto videoRecorder);

    /**
     * 根据ID删除单个
     *
     * @param id ID
     * @return {@link Boolean} 状态标识
     */
    Boolean deleteOne(Long id);
}